﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Catering_Model
{
    [Serializable]
    public class BalanceInfo
    {
        #region 字段
        
        private int _ID;
        private int _RawID;
        private string _InDBId;
        private int _ClassID;
        private DateTime _AddDate;
        private decimal _Balance;
        private decimal _Price;
        private decimal _ChangeNumber;
        private decimal _ChangePrice;
        private int _ChangeType;
        private int _ChangeID;
        private decimal _PreBalance;
        private decimal _PrePrice;

        #endregion

        #region 属性
        
        /// <summary>
        /// 上次入库价格
        /// </summary>
        public decimal PrePrice
        {
            get { return _PrePrice; }
            set { _PrePrice = value; }
        }

        /// <summary>
        /// 上次结余量
        /// </summary>
        public decimal PreBalance
        {
            get { return _PreBalance; }
            set { _PreBalance = value; }
        }

        /// <summary>
        /// 类型ID
        /// </summary>
        public int ChangeID
        {
            get { return _ChangeID; }
            set { _ChangeID = value; }
        }

        /// <summary>
        /// 类型：（0：入库，1：出库）
        /// </summary>
        public int ChangeType
        {
            get { return _ChangeType; }
            set { _ChangeType = value; }
        }

        /// <summary>
        /// 变更价格
        /// </summary>
        public decimal ChangePrice
        {
            get { return _ChangePrice; }
            set { _ChangePrice = value; }
        }        

        /// <summary>
        ///变更数量
        /// </summary>
        public decimal ChangeNumber
        {
            get { return _ChangeNumber; }
            set { _ChangeNumber = value; }
        }

        /// <summary>
        /// 结余价格
        /// </summary>
        public decimal Price
        {
            get { return _Price; }
            set { _Price = value; }
        }

        /// <summary>
        /// 结余量
        /// </summary>
        public decimal Balance
        {
            get { return _Balance; }
            set { _Balance = value; }
        }

        /// <summary>
        /// 添加日期
        /// </summary>
        public DateTime AddDate
        {
            get { return _AddDate; }
            set { _AddDate = value; }
        }

        /// <summary>
        /// 班组
        /// </summary>
        public int ClassID
        {
            get { return _ClassID; }
            set { _ClassID = value; }
        }

        /// <summary>
        /// 品号
        /// </summary>
        public string InDBId
        {
            get { return _InDBId; }
            set { _InDBId = value; }
        }

        /// <summary>
        /// 种属
        /// </summary>
        public int RawID
        {
            get { return _RawID; }
            set { _RawID = value; }
        }

        /// <summary>
        /// 标识列
        /// </summary>
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }

        #endregion
    }
}
